<?php
/*
 * @Author: lokei
 * @Date: 2022-08-27 10:56:02
 * @LastEditors: lokei
 * @LastEditTime: 2022-08-27 10:57:15
 * @Description: 
 */
namespace App\Http\Controllers\Ucenter\Fans;

use App\Common\Tools\ResultTool;
use App\Http\Controllers\Controller;
use App\Models\Ucenter\FansModel;

class FansController extends Controller {
    public function list() {
        $items = FansModel::get();
        $res = ResultTool::success();
        $res['data']['items'] = $items;
        $res['data']['total'] = count($items);
        return $res;
    }
}